<div class="layui-card layadmin-header">
    <div class="layui-breadcrumb" lay-filter="breadcrumb">
        <a lay-href="">主页</a>
    </div>
</div>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-form layui-card-header layuiadmin-card-header-auto" lay-filter="layuiadmin-search-form">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">用户名</label>
                    <div class="layui-input-block">
                        <input type="text" name="title" placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <button class="layui-btn layuiadmin-btn-comm" data-type="reload" lay-submit
                            lay-filter="layuiadmin-search-form-btn">
                        <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                    </button>
                </div>
            </div>
        </div>
        <div class="layui-card-body">
            <table id="layuiadmin-table" lay-filter="layuiadmin-table"></table>
        </div>
        <script type="text/html" id="layuiadmin-app-btns">
            <a class="layui-btn layui-btn-danger layui-btn-xs"
                                                                    lay-event="del"><i
                    class="layui-icon layui-icon-delete"></i>删除</a>
        </script>
    </div>
</div>
<script>
    layui.use(['admin', 'table', 'helper', 'baseTable'], function () {
        var $           = layui.$
            , admin     = layui.admin
            , setter    = layui.setter
            , view      = layui.view
            , table     = layui.table
            , helper    = layui.helper
            , baseTable = layui.baseTable
            , form      = layui.form;
        var config      = {
            requestUrl: '/app/sign-index'
            // , formTemplate: '---good/index-edit'
            , tableCols : [{
                field  : 'member_id'
                , width: 150
                , title: '签到用户'
            }, {
                field     : 'day'
                , title   : '签到天数'
                , width: 100
            }, {
                field     : 'today'
                , title   : '今天签到'
                , width: 100
            }, {
                field     : 'second'
                , title   : '签到重置倒计时(s)'
                , width: 180
            }, {
                field     : 'last_date'
                , title   : '最后签到日期'
                , width: 130
            }, {
                title    : '操作'
                , align  : 'center'
                , fixed  : 'right'
                , toolbar: '#layuiadmin-app-btns'
            }]
            , areaWidth : 450
            , areaHeight: 550
            , search    : true
            , dateFilter: false
        };
        baseTable.render(config);
    });
</script>